﻿#ifndef AUTORESTARTER_H
#define AUTORESTARTER_H

#include <QCoreApplication>
#include <QTimer>
#include <QProcess>
#include <QDebug>

class AutoRestarter
{
public:
    AutoRestarter(int waitTime, const QString& programPath);
    void start();
private:
    int m_waitTime;
    QString m_programPath;
    void waitProgramQuit();//等待进程退出
    void restartProgram();
};

#endif // AUTORESTARTER_H
